<script type="text/html" id="{$self->field}_{$self->id}">
    {volist name="$self->options" id="vo"}
        {{#  if(d.{$self->field} == '{$vo.val}'){ }}
            {if $vo.type}
            <button class="layui-btn layui-btn-xs  layui-btn-{$vo.type}">{$vo.title}</button>
            {else /}
            <button class="layui-btn layui-btn-xs ">{$vo.title}</button>
            {/if}
        {{#  } }}
    {/volist}
</script>